home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17674 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.7 KB  |  74 lines

  1. Newsgroups: comp.object,comp.lang.c++
  2. Path: alexandria.organon.com!alexandria!jsa
  3. From: jsa@organon.com (Jon S Anthony)
  4. Subject: Re: The Good, the Bad, the Ugly, and the Wicked ...
  5. In-Reply-To: milod@netcom.com's message of Fri, 12 Apr 1996 16:03:45 GMT
  6. Message-ID: <JSA.96Apr16205124@organon.com>
  7. Sender: news@organon.com (news)
  8. Organization: Organon Motives, Inc.
  9. References: <31570B8E.5A12@vmark.com> <4je5rq$7qg@mimas.brunel.ac.uk>
  10.     <4jes0t$gth@decaxp.HARVARD.EDU> <31630E30.5A02@oma.com>
  11.     <4kbq3q$1i8@gaia.ns.utk.edu> <JSA.96Apr9131057@organon.com>
  12.     <RMARTIN.96Apr10133335@rcm.oma.com> <JSA.96Apr11153135@organon.com>
  13.     <milodDprBA9.FyH@netcom.com>
  14. Date: Wed, 17 Apr 1996 00:51:24 GMT
  15.  
  16. In article <milodDprBA9.FyH@netcom.com> milod@netcom.com (John DiCamillo) writes:
  17.  
  18. > >> Robert C. Martin (rmartin@oma.com) wrote:
  19. > >> 
  20. > >>    > : Malloc and new can *always* be made to be deterministic.
  21. > [Jon and Matt disagree]
  22. > >> You missed my point.  new/delete can *always be made* to be completely
  23. > >> deterministic.  Consider:
  24. > >> 
  25. > >> [example...]
  26. > >1. Yes, we (Matt and I) both missed your point (assuming it was the
  27. > >   one you are now claiming) - probably because this is not what you
  28. > >   said.
  29. >
  30. > Huh?  What Robert wrote was perfectly clear both times.  For reasons
  31. > unknown (time pressure? the desire to argue on the net?) both you
  32. > and Matt mis-interpreted Robert's post as if it had read 'any old
  33. > malloc can be *used* in a deterministic manner'
  34.  
  35. Probably, because that is what he _said_.  Here, (since you chop off
  36. the context) take a look again:
  37.  
  38. [From R Martin...]
  39. >   : Malloc and new can *always* be made to be deterministic.  That is
  40. >   : one of the major attractions to manual memory management in 
  41. >   : real time systems.  You can use malloc/free (new/delete) pairs which are
  42. >   : 100% predictable.
  43. >
  44.  
  45. He seems to say that Malloc and new (the _standard_ manual memory
  46. management stuff in typical libraries) can be made deterministic by
  47. always calling new and free in pairs.  You can read between the lines
  48. and say "oh, of course he really didn't mean that", but I didn't.  If
  49. he had been clearer and stated that manual memory management based on
  50. user defined allocation and deallocation operations can be made
  51. deterministic, that would have been different.  This is exactly what
  52. he says in the later post.
  53.  
  54. > instead of 'it is
  55. > possible to *make* a deterministic malloc'
  56.  
  57. Great.  Of course, it is _now_ clear that this is not what he meant,
  58. because he points this out in the subsequent article.  I guess you're
  59. just a lot better at psychic-net-connections than I am.  Shrug.
  60.  
  61. /Jon
  62. -- 
  63. Jon Anthony
  64. Organon Motives, Inc.
  65. 1 Williston Road, Suite 4
  66. Belmont, MA 02178
  67.  
  68. 617.484.3383
  69. jsa@organon.com
  70.  
  71.